<?php   // $Id: verif.php 347 2012-05-07 09:11:55Z pcoustillas $ ?>
<?php
ini_set('session.save_path', dirname(__FILE__) . '/../sessions');

require_once (dirname(__FILE__) . '/debug.php'); //inclu par verif car verif est inclus presque partout.
//trigger_error($_SERVER['REQUEST_URI']);

//patch magic quot php5.3
if (get_magic_quotes_gpc() == 0) {
    function stripslashes_gpc(&$value)
    {
        $value = mysql_escape_string($value);
    }
    array_walk_recursive($_GET, 'stripslashes_gpc');
    array_walk_recursive($_POST, 'stripslashes_gpc');
    array_walk_recursive($_COOKIE, 'stripslashes_gpc');
    array_walk_recursive($_REQUEST, 'stripslashes_gpc');
}

session_start();

//$authent_ok=isset($_SESSION['admin'])?"OK":"KO";
if(!isset($_SESSION['admin']))
{
	//echo "Vous n'êtes pas autorisé à accéder à cette zone";
	header("Location: index.php?admin=oui");
	exit;
} else {

	$lang = $_SESSION['lang'];	
	$user_num = $_SESSION['num'];
	$user_nom = $_SESSION["nom"];
	$user_prenom = $_SESSION["prenom"];
	$user_email = $_SESSION['email'];
	$user_fact = $_SESSION['fact'];
	$user_com = $_SESSION['com'];
	$user_dev = $_SESSION['dev'];
	$user_admin = $_SESSION['admin'];
	$user_dep = $_SESSION['dep'];
	$user_stat = $_SESSION['stat'];
	$user_art = $_SESSION['art'];
	$user_cli = $_SESSION['cli'];
	
}

?>
